<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
		<div class="barTitle shadow"><i class="iconfont">&#xe621;</i>个人资料</div>
	    <div id="warnMessage" class="col-sm-12 text-error mb15"></div>
		<div class="p30 pt10">
				<span class="C999 w80 pr20 dis-in-blo tr">昵称:</span>${model.name}<br>
				<span class="C999 w80 pr20 dis-in-blo tr">账号类型:</span><s:property value="model.type.name"/><br>
				<span class="C999 w80 pr20 dis-in-blo tr">账户消息:</span>可用积分(${model.bounds})<br>
				
				<span class="C999 w80 pr20 dis-in-blo tr">登陆邮箱:</span>
				<s:if test="model.email==null">
				          为了您账号的安全，请绑定邮箱
				   <a class="B2 fr" href="#" onclick="showModalEmail('BINGDING')">[ 绑定邮箱 ]</a>
				</s:if>
				<s:else>
				     ${model.email}
				     <a class="B2 fr" href="#" onclick="showModalEmail('MODIFY')">[ 修改邮箱 ]</a>
				</s:else>
				
				<div class="cb"></div>
				<span class="C999 w80 pr20 dis-in-blo tr">手机号码:</span>
				<s:if test="#model.phone.equals('null')">
				         为了您账号的安全，请帮绑定手机
				   <div class="fr B2"><a href="#" class="B2" onclick="showModalPhone('BINDING')">[ 绑定手机 ]</a></div>
				</s:if>
				<s:else>
				     ${model.phone}
				     <div class="fr B2"><a href="#" class="B2" onclick="showModalPhone('MODIFY')">[ 更换号码 ]</a></div>
				</s:else>
				<div class="cb"></div>
				<br>
				<hr>
				<br>
				<span class="C999 w80 pr20 dis-in-blo tr">交易消息:</span>
				<a href="javascript:void(0);" class="pr20" onclick="callAjax('trade','',true,4,'PROPUP','infoHtml','&p_state=UNPAY');">待支付订单(${unpayNum})</a>
				<a href="javascript:void(0);" class="pr20" onclick="callAjax('trade','',true,4,'PROPUP','infoHtml','&p_state=DELIVER');">待确认收货订单(${deliberNum })</a>
				<a href="javascript:void(0);" class="pr20" onclick="callAjax('trade','',true,4,'PROPUP','infoHtml','&p_state=SUCCESS');">待评价订单(${successNum })</a>
				<br><br>
				<hr>
				<div class="cb"></div>
				<form class="mt20" method="post">
					<table class="col-xs-12 col-sm-6">
						<tr>
						     <td>昵称:</td>
						     <td><input type="text" class="form-control mt10" id="name" value="${model.name}"/></td>
						</tr>
						<tr>
						     <td>QQ:</td>
						     <td><input type="text" class="form-control mt10" id="qq" value="${model.qq}"/></td>
						</tr>
						<tr>
						    <td>性别:</td>
							<td>
							<div class="btn-group mt10" data-toggle="buttons">
							<label class="btn btn-default " id="manClass"> <input type="radio" id="mSex" value="MALE"> ♂&emsp; 男</label> 
							<label class="btn btn-default " id="womanClass"><input type="radio" id="fSex" value="FAMALE">♀&emsp; 女</label>
							</div>
							</td>
						</tr>
						<input type="hidden" value="<s:property value="model.sex"/>" id="changeSexRadio" />
						<tr><td></td><td><button type="button" class="btn btn-info form-control btn-sm mt10" onclick="modifyUserInfo()">提交修改</button></td></tr>
					</table>
				</form>
				<div class="cb"></div>
		</div>
<script type="text/javascript">
	var changeSexRadio=$("#changeSexRadio").val();
	  console.info(changeSexRadio);
	  if(changeSexRadio=="MALE"){
		$("#manClass").addClass("active");
      }else{
		$("#womanClass").addClass("active");
	  }
</script>